
<%@taglib uri="/struts-tags" prefix="s"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="resources/css/main.css" />

<style type="text/css">
body {background: #EEE; color: #000;
  behavior: url(csshover.htc);} /* WinIE behavior call */
h1 {color: #AAA; border-bottom: 1px solid; margin-bottom: 0;}
#main {color: #CCC; margin-left: 7em; padding: 1px 0 1px 5%;
  border-left: 1px solid;}
div#nav {float: left; width: 7em; margin: -1px 0 0 -1px;
  background: #FDD;}
div#nav ul {margin: 0; padding: 0; width: 7em; background: white;
  border: 1px solid #AAA;}
div#nav ul.level2 {background: #F9F9F9;}
div#nav ul.level3 {background: #F3F3F3;}
div#nav ul.level4 {background: #F3F3F3;}
div#nav li {position: relative; list-style: none; margin: 0;
  border-bottom: 1px solid #CCC;}
div#nav li:hover {background: #EBB;}
div#nav li.submenu {background: url(submenu.gif) 95% 50% no-repeat;}
div#nav li.submenu:hover {background-color: #EDD;}
div#nav li a {display: block; padding: 0.25em 0 0.25em 0.5em;
  text-decoration: none; width: 6em; border-left: 0.5em solid #BBB;}
div#nav li a:hover {border-left-color: red;}
div#nav>ul a {width: auto;}
div#nav ul ul {position: absolute; top: 0; left: 7em;
  display: none;}
div#nav ul.level1 li.submenu:hover ul.level2,
div#nav ul.level2 li.submenu:hover ul.level3 {display:block;}
div#nav ul.level3 li.submenu:hover ul.level4 {display:block;}
</style> 

<div id="nav">
<ul class="level1">
 <li><a href="/">Home</a></li>
 
<li class="submenu"><a href="">CRUD Operations</a>
  <ul class="level2">


<li class="submenu"><a>Address</a>
  <ul class="level3">
	
     <li>
       <s:url id="getAllAddresses" action="getAllAddresses">
           <s:param name="criteria">A0</s:param>
           <s:param name="criteriaSubId">1</s:param>
       </s:url>
       <s:a href="%{getAllAddresses}" target="body" >   View All Addresses </s:a>
      </li> 
      <li>
       <s:url id="getAllInternationalAddresses" action="getAllInternationalAddresses">
           <s:param name="criteria">A0</s:param>
           <s:param name="criteriaSubId">1</s:param>
       </s:url>
       <s:a href="%{getAllInternationalAddresses}" target="body" > International Addresses </s:a>
      </li> 
      <li>
         <s:url id="insertAddress" action="addressSetUpForInsert">
           <s:param name="criteria">A0</s:param>
           <s:param name="criteriaSubId">1</s:param>
        </s:url> 
        <s:a href="%{insertAddress}" target="body" >Add New Address</s:a>
          
      </li> 
     <li>
         <s:url id="insertInterAddress" action="interAddressSetUpForInsert">
           <s:param name="criteria">A0</s:param>
           <s:param name="criteriaSubId">1</s:param>
        </s:url> 
        <s:a href="%{insertInterAddress}" target="body" >Add New International Address</s:a>
          
      </li> 

  </ul>
 </li>

 
 <li class="submenu"><a href="">ContactInfo</a>
  <ul class="level3">
 
    <li>
         <s:url id="getAllContactInfos" action="getAllContactInfos">
           <s:param name="criteria">A0</s:param>
           <s:param name="criteriaSubId">1</s:param>
        </s:url> 
        <s:a href="%{getAllContactInfos}" target="body" >View ContactInfo</s:a> 
      </li>  
 <li>
         <s:url id="insertContactInfo" action="contactInfoSetUpForInsert">
           <s:param name="criteria">A0</s:param>
           <s:param name="criteriaSubId">1</s:param>
        </s:url> 
        <s:a href="%{insertContactInfo}" target="body" >Add New ContactInfo</s:a>
          
      </li>  
  </ul>
 </li>
  

<li class="submenu"><a href="">Customer</a>
  <ul class="level3">
 
    <li>
         <s:url id="getAllCustomers" action="getAllCustomers">
           <s:param name="criteria">A0</s:param>
           <s:param name="criteriaSubId">1</s:param>
        </s:url> 
        <s:a href="%{getAllCustomers}" target="body" >View Customer</s:a> 
      </li>  
 <li>
         <s:url id="insertCustomers" action="customerSetUpForInsert">
           <s:param name="criteria">A0</s:param>
           <s:param name="criteriaSubId">1</s:param>
        </s:url> 
        <s:a href="%{insertCustomers}" target="body" >Add New Customer</s:a>
          
      </li>  
  </ul>
 </li>
 
<li class="submenu"><a href="">Payment</a>
  <ul class="level3">
 
    <li>
         <s:url id="getAllPayments" action="getAllPayments">
           <s:param name="criteria">A0</s:param>
           <s:param name="criteriaSubId">1</s:param>
        </s:url> 
        <s:a href="%{getAllPayments}" target="body" >View Payment</s:a> 
      </li>  
 <li>

         <s:url id="insertPayment" action="paymentSetUpForInsert">
           <s:param name="criteria">A0</s:param>
           <s:param name="criteriaSubId">1</s:param>
        </s:url> 
        <s:a href="%{insertPayment}" target="body" >Add New Payment</s:a>
          
      </li>  
  </ul>
 </li>

 
<li class="submenu"><a href="">Salesman</a>
  <ul class="level3">
 
    <li>
         <s:url id="getAllSalesmans" action="getAllSalesmans">
           <s:param name="criteria">A0</s:param>
           <s:param name="criteriaSubId">1</s:param>
        </s:url> 
        <s:a href="%{getAllSalesmans}" target="body" >View Salesman</s:a> 
      </li>  
 <li>
         <s:url id="insertSalesman" action="salesmanSetUpForInsert">
           <s:param name="criteria">A0</s:param>
           <s:param name="criteriaSubId">1</s:param>
        </s:url> 
        <s:a href="%{insertSalesman}" target="body" >Add New Salesman</s:a>
          
      </li>  
  </ul>
 </li>
 

<li class="submenu"><a href="">Supplier</a>
  <ul class="level3">
 
    <li>
         <s:url id="getAllSuppliers" action="getAllSuppliers">
           <s:param name="criteria">A0</s:param>
           <s:param name="criteriaSubId">1</s:param>
        </s:url> 
        <s:a href="%{getAllSuppliers}" target="body" >View Suppliers</s:a>
      </li>  
 <li>
         <s:url id="insertSupplier" action="supplierSetUpForInsert">
           <s:param name="criteria">A0</s:param>
           <s:param name="criteriaSubId">1</s:param>
        </s:url> 
        <s:a href="%{insertSupplier}" target="body" >Add New Supplier</s:a>
          
      </li>  
  </ul>
 </li>




<li class="submenu"><a href="">Item</a>
  <ul class="level3">
 
    <li>
         <s:url id="getAllItems" action="getAllItems">
           <s:param name="criteria">A0</s:param>
           <s:param name="criteriaSubId">1</s:param>
        </s:url> 
        <s:a href="%{getAllItems}" target="body" >View Item</s:a> 
      </li>  
 <li>
         <s:url id="insertItem" action="itemSetUpForInsert">
           <s:param name="criteria">A0</s:param>
           <s:param name="criteriaSubId">1</s:param>
        </s:url> 
        <s:a href="%{insertItem}" target="body" >Add New Item</s:a>
          
      </li>  
  </ul>
 </li>


<li class="submenu"><a href="">Cust Orders</a>
  <ul class="level3">
 
    <li>
         <s:url id="getAllCustOrders" action="getAllCustOrders">
           <s:param name="criteria">A0</s:param>
           <s:param name="criteriaSubId">1</s:param>
        </s:url> 
        <s:a href="%{getAllCustOrders}" target="body" >View Cust Orders</s:a> 
      </li>  
 <li>
         <s:url id="insertCustOrder" action="getAllOrderDetails">
           <s:param name="criteria">A0</s:param>
           <s:param name="criteriaSubId">1</s:param>
        </s:url> 
        <s:a href="%{insertCustOrder}" target="body" >Add New Cust Order</s:a>
          
      </li>  
  </ul>
 </li>


   

  </ul>
 </li>

<li class="submenu"><a href="">Evaluation of CRUD</a>
  <ul class="level2">
   <li class="submenu"><a href="">Simple Operations</a> 
    <ul class="level3">
	<li class="submenu"><a>Save particular entity</a>
  		<ul class="level4">
		     <li>
			 <s:url id="insertCustomers" action="customerSetUpForInsert">
			   <s:param name="criteria">A1</s:param>
			   <s:param name="criteriaSubId">1</s:param>

			</s:url> 
			<s:a href="%{insertCustomers}" target="body" >Add New Customer</s:a>

		    </li>


		 <li>
			  <s:url id="insertAddress" action="addressSetUpForInsert">
			   <s:param name="criteria">A1</s:param>
			   <s:param name="criteriaSubId">1</s:param>

			</s:url> 
			<s:a href="%{insertAddress}" target="body" >Add New Address</s:a>

		    </li>


		 <li>
			  <s:url id="insertItem" action="itemSetUpForInsert">
			   <s:param name="criteria">A1</s:param>
			   <s:param name="criteriaSubId">1</s:param>

			</s:url> 
			<s:a href="%{insertItem}" target="body" >Add New Item</s:a>

		    </li>

	  </ul>
	
	</li>

<li class="submenu"><a>Load particular entity</a>
  		<ul class="level4">
<li>
	<s:url id="getSingleCustomer" action="getSingleCustomer">
           <s:param name="criteria">A1</s:param>
           <s:param name="criteriaSubId">2</s:param>
          <%--  <s:param name="customer.id">46</s:param> --%>

       </s:url>
       <s:a href="%{getSingleCustomer}" target="body" >   View Single Customer </s:a>

    </li>


 <li>
	<s:url id="getSingleAddress" action="getSingleAddress">
           <s:param name="criteria">A1</s:param>
           <s:param name="criteriaSubId">2</s:param>
         <%--  <s:param name="address.addressId">10</s:param> --%>
       </s:url>
       <s:a href="%{getSingleAddress}" target="body" >   View Single Address </s:a>

    </li>


 <li>
	<s:url id="getSingleItem" action="getSingleItem">
           <s:param name="criteria">A1</s:param>
           <s:param name="criteriaSubId">2</s:param>
          <%--      <s:param name="item.itemId" >1</s:param> --%>


       </s:url>
       <s:a href="%{getSingleItem}" target="body" >   View Single Item </s:a>

    </li>

</ul>
	
	</li>

<li class="submenu"><a>Load same entity twice</a>
  		<ul class="level4">

<li>
	<s:url id="getSingleCustomerTwice" action="getSingleCustomerTwice">
           <s:param name="criteria">A1</s:param>
           <s:param name="criteriaSubId">3</s:param>
           <%--  <s:param name="customer.id">46</s:param>   --%>
       </s:url>
       <s:a href="%{getSingleCustomerTwice}" target="body" >   View Single Customer Twice</s:a>

    </li>


 <li>
	<s:url id="getSingleAddressTwice" action="getSingleAddressTwice">
           <s:param name="criteria">A1</s:param>
           <s:param name="criteriaSubId">3</s:param>
          <%--  <s:param name="address.addressId">10</s:param> --%>
       </s:url>
       <s:a href="%{getSingleAddressTwice}" target="body" >   View Single Address Twice </s:a>

    </li>


 <li>
	<s:url id="getSingleItemTwice" action="getSingleItemTwice">
           <s:param name="criteria">A1</s:param>
           <s:param name="criteriaSubId">3</s:param>
       <%--   <s:param name="item.itemId" >1</s:param>  --%>
       </s:url>
       <s:a href="%{getSingleItemTwice}" target="body" >   View Single Item Twice</s:a>

    </li>

</ul>
	
	</li>


<li>
	<s:url id="getCustomerAddressItem" action="getCustomerAddressItem">
           <s:param name="criteria">A1</s:param>
           <s:param name="criteriaSubId">6</s:param>
      <%--    <s:param name="customer.id">46</s:param>   --%>
        <%--       <s:param name="address.addressId">10</s:param>      --%>
        <%--       <s:param name="item.itemId" >1</s:param>       --%>
       </s:url>
       <s:a href="%{getCustomerAddressItem}" target="body" >   Retrieve a Customer , Address , Item </s:a>

    </li>

<li class="submenu"><a>CRUD operations sqe on single entity</a>
  		<ul class="level4">
 
<li>
	 <s:url id="CRUDCustomer" action="customerSetUpForCRUD">
           <s:param name="criteria">A1</s:param>
           <s:param name="criteriaSubId">7</s:param>
        </s:url> 
        <s:a href="%{CRUDCustomer}" target="body" >CRUD Customer</s:a>

    </li>


 <li>
	  <s:url id="CRUDAddress" action="addressSetUpForCRUD">
           <s:param name="criteria">A1</s:param>
           <s:param name="criteriaSubId">7</s:param>
        </s:url> 
        <s:a href="%{CRUDAddress}" target="body" >CRUD Address</s:a>

    </li>


 <li>
	  <s:url id="CRUDItem" action="itemSetUpForCRUD">
           <s:param name="criteria">A1</s:param>
           <s:param name="criteriaSubId">7</s:param>
        </s:url> 
        <s:a href="%{CRUDItem}" target="body" >CRUD Item</s:a>

    </li>

</ul>
	
	</li>



 </ul>
 </li>
<li class="submenu"><a href="">Bulk  Operations</a>
    <ul class="level3">
      <li>
	  <s:url id="insertBulkAddresses" action="addressBulkTask">
           <s:param name="criteria">A2</s:param>
           <s:param name="criteriaSubId">1</s:param>
        </s:url> 
        <s:a href="%{insertBulkAddresses}" target="body" >Create 1000 Addresses  </s:a>

   	 </li>
         <li>
                                 <s:url id="insertBulkItems" action="itemBulkTask">
                                    <s:param name="criteria">A2</s:param>
                                    <s:param name="criteriaSubId">1</s:param>
                                 </s:url>
                                 <s:a href="%{insertBulkItems}" target="body" >Create 1000 Items</s:a>
        </li>
               
 	<li>
	  <s:url id="getBulkAddresses" action="getBulkAddress">
           <s:param name="criteria">A2</s:param>
           <s:param name="criteriaSubId">2</s:param>
        </s:url> 
        <s:a href="%{getBulkAddresses}" target="body" >Retrieve 1000 Addresses  </s:a>

    	</li>

	<li>
		  <s:url id="getBulkUpdateItems" action="getBulkUpdateItems">
		   <s:param name="criteria">A2</s:param>
		   <s:param name="criteriaSubId">3</s:param>
		</s:url> 
		<s:a href="%{getBulkUpdateItems}" target="body" >(Bulk Update) Increase Item Prices by 10%  </s:a>

    	</li>


	<li>
		  <s:url id="getBulkDeleteItems" action="getBulkDeleteItems">
		   <s:param name="criteria">A2</s:param>
		   <s:param name="criteriaSubId">4</s:param>
		</s:url> 
		<s:a href="%{getBulkDeleteItems}" target="body" >(Bulk Delete) Delete All Item less then 100 qty stock </s:a>

    	</li>


    </ul>


 
 </li>
 

  
</ul>

<li class="submenu"><a href=""> Eval. of Mapping Object Oriented Structures</a>
  <ul class="level2"> 
   <li class="submenu"><a href="">Inheritance Mapping</a>
    <ul class="level3">
     <li>  
  	<s:url id="getBulkPayments" action="getBulkPayments">
           <s:param name="criteria">B1</s:param>
           <s:param name="criteriaSubId">1</s:param>
        </s:url> 
        <s:a href="%{getBulkPayments}" target="body" >Single Table ( Load Payment hierarchy)</s:a> 
 
	</li>
<li class="submenu"><a>Class Table ( Person hierarchy)</a>
  		<ul class="level4">
	 
	 <li> 
         <s:url id="getBulkSalesmans" action="getBulkSalesmans">
           <s:param name="criteria">B1</s:param>
           <s:param name="criteriaSubId">2</s:param>
        </s:url> 
        <s:a href="%{getBulkSalesmans}" target="body" >Load Salesmans(Caching enable)</s:a> 
      </li>  



    <li>
         <s:url id="getBulkCustomers" action="getBulkCustomers">
           <s:param name="criteria">B1</s:param>
           <s:param name="criteriaSubId">2</s:param>
        </s:url> 
        <s:a href="%{getBulkCustomers}" target="body" >Load Customer</s:a> 
      </li>  


    <li>                                                        
         <s:url id="getBulkSuppliers" action="getBulkSuppliers">
           <s:param name="criteria">B1</s:param>
           <s:param name="criteriaSubId">2</s:param>
        </s:url> 
        <s:a href="%{getBulkSuppliers}" target="body" >Load Suppliers</s:a> 
      </li>  
</ul>
 </li>

<li>  
  	 
       <s:url id="getBulkAddress" action="getBulkAddress">
           <s:param name="criteria">B1</s:param>
           <s:param name="criteriaSubId">3</s:param>
        </s:url> 
        <s:a href="%{getBulkAddress}" target="body" >Concrete Table ( Load Address hierarchy)</s:a> 

	</li>
     
    </ul>
   </li>


 
<li class="submenu"><a href="">Association Mapping</a>
    <ul class="level3">
      
<li class="submenu"><a>One to One Association</a>
  		<ul class="level4"> 
	 <li>
         <s:url id="getAllSalesmansContantInfo" action="getAllSalesmansContantInfo">
           <s:param name="criteria">B2</s:param>
           <s:param name="criteriaSubId">1</s:param>
        </s:url> 
        <s:a href="%{getAllSalesmansContantInfo}" target="body" >Uni-Load Salesmans with ContantInfo</s:a> 
      </li>   

    <li>
         <s:url id="getAllCustOrderPayment" action="getAllCustOrderPayment">
           <s:param name="criteria">B2</s:param>
           <s:param name="criteriaSubId">1</s:param>
        </s:url> 
        <s:a href="%{getAllCustOrderPayment}" target="body" >Bi-Load CustOrder with Payment</s:a> 
      </li>  

    <li>
         <s:url id="getAllPaymentCustOrder" action="getAllPaymentCustOrder">
           <s:param name="criteria">B1</s:param>
           <s:param name="criteriaSubId">1</s:param>
        </s:url> 
        <s:a href="%{getAllPaymentCustOrder}" target="body" >Bi-Load Payment with CustOrder</s:a> 
      </li>  
</ul>
 </li>

 
<li class="submenu"><a>One to Many Association</a>
  		<ul class="level4"> 
	 <li>
         <s:url id="getAllSalesmans" action="getAllSalesmans">
           <s:param name="criteria">A1</s:param>
           <s:param name="criteriaSubId">1</s:param>
        </s:url> 
        <s:a href=" " target="body" >Unidirectional-does not define</s:a> 
      </li>   

    <li>
         <s:url id="getAllCustOrderCustomer" action="getAllCustOrderCustomer">
           <s:param name="criteria">B2</s:param>
           <s:param name="criteriaSubId">2</s:param>
        </s:url> 
        <s:a href="%{getAllCustOrderCustomer}" target="body" >Bi -Load CustOrder with Customer</s:a> 
      </li>  


     <li>
         <s:url id="getAllCustomerCustOrder" action="getAllCustomerCustOrder">
           <s:param name="criteria">B2</s:param>
           <s:param name="criteriaSubId">2</s:param>
        </s:url> 
        <s:a href="%{getAllCustomerCustOrder}" target="body" >Bi -Load Customer with CustOrder</s:a> 
      </li>  


</ul>
 </li>


<li class="submenu"><a>Many to Many Association</a>
  		<ul class="level4"> 
	 <li>
         <s:url id="getContactInfoAddresses" action="getContactInfoAddresses">
           <s:param name="criteria">B2</s:param>
           <s:param name="criteriaSubId">3</s:param>
        </s:url> 
        <s:a href="%{getContactInfoAddresses}" target="body" >Un -Load ContactInfo with Addresses</s:a> 
      </li>   

    <li>
         <s:url id="getAllItemSuppliers" action="getAllItemSuppliers">
           <s:param name="criteria">B2</s:param>
           <s:param name="criteriaSubId">3</s:param>
        </s:url> 
        <s:a href="%{getAllItemSuppliers}" target="body" >Bi -Load Item with Suppliers</s:a> 
      </li>  

<li>
         <s:url id="getAllSupplierItems" action="getAllSupplierItems">
           <s:param name="criteria">B2</s:param>
           <s:param name="criteriaSubId">3</s:param>
        </s:url> 
        <s:a href="%{getAllSupplierItems}" target="body" >Bi -Load Supplier with Item</s:a> 
      </li>  

</ul>
 	 
 
  </ul>
 </li>
   
</ul>


<li class="submenu"><a href="">Eval. of Object Graph </a>
 <ul class="level2"> 
   <li class="submenu"><a href="">CRUD operation on CustOrder entity</a>
  <ul class="level3">
	<li> 

         <s:url id="insertCustOrder" action="getAllOrderDetails">
           <s:param name="criteria">C1</s:param>
           <s:param name="criteriaSubId">1</s:param>
        </s:url> 
        <s:a href="%{insertCustOrder}" target="body" >Create-CustOrder</s:a>
      </li> 
  
  </ul>
 </li>
 </ul>

<li class="submenu"><a href="">Eval. of Cache Related Criteria </a>
 <ul class="level2"> 
   <li class="submenu"><a href="">Load operation on Cache entity</a>
  <ul class="level3">

      <li>
	  <s:url id="insertBulkSalesmans" action="salesmanBulkTask">
           <s:param name="criteria">D1</s:param>
           <s:param name="criteriaSubId">1</s:param>
        </s:url> 
        <s:a href="%{insertBulkSalesmans}" target="body" >Create 1000 Salesmans(cache enable)  </s:a>

   	 </li>

	<li> 
 
      <s:url id="getBulkSalesmans" action="getBulkSalesmans">
           <s:param name="criteria">D1</s:param>
           <s:param name="criteriaSubId">2</s:param>
        </s:url> 
        <s:a href="%{getBulkSalesmans}" target="body" >Load 1000 Salesmans(cache enable)</s:a> 

      </li>  
  
  </ul>
 </li> 
 </ul>
 </li>
<li class="submenu"><a href="">Eval. of Fetching Strategies</a>
  <ul class="level2">
	<li>
         <s:url id="getAllCustOrders" action="getAllCustOrders">
           <s:param name="criteria">E1</s:param>
           <s:param name="criteriaSubId">1</s:param>
        </s:url> 
        <s:a href="%{getAllCustOrders}" target="body" >Lazy Load entity-CustOrder</s:a> 
      </li> 


	<li>
         <s:url id="getAllCustOrders" action="getAllCustOrders">
           <s:param name="criteria">E1</s:param>
           <s:param name="criteriaSubId">2</s:param>
        </s:url> 
        <s:a href="%{getAllCustOrders}" target="body" >Eager Load entity-CustOrder</s:a> 
      </li>  
  </ul>
 </li>


<li>    	 
 
  </ul>
 </li>



</div>
</body>
</html>

